$(function(){
	FastClick.attach(document.body);
	var result = JSON.parse(AppStorage.getValueInLocalStorage("result"));

	wvChart.radar("chart1",result.shidaweidu);
	wvChart.barSerial("chart2",result.liuzhonghexinjingzhengli);
	wvChart.lineSerial("chart3",result.sileijijixinliyinsu);

	$(".wv-wrap .wv-btn-again").on("click",function(){
		AppStorage.removeValueInLocalStorage("status");
		window.location.href="index.html" + location.search;
	});
	$(".wv-wrap .wv-btn-share").on("click",function(){
		$(".wv-layar").show();
		setTimeout(function(){
			$(".wv-layar").hide();
		},2000);
	});
	$(".wv-layar").on("click",function(){
		$($(this)).hide();
	});


	var _hmt = _hmt || [];
      (function() {
        var hm = document.createElement("script");
        hm.src = "//hm.baidu.com/hm.js?c972f6ec6001ddcaf8bc97d0dc8d2f07";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
      })();

});
